<%--
    Document   : cadastrar2
    Created on : 08/12/2013, 20:27:13
    Author     : Fatec
--%>

<%@page import="adocao.OracleConnector"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="_res/estilo/estilo.css" rel="stylesheet" type="text/css">
        <title>ADOCAO</title>
    </head>
    <body>
        
        <div id="principal">
            <div id="header">
                <%@include file="../_templates/header.jsp" %>
            </div>
            <div id="menu">
                <%@include file="../_templates/menu.jsp"%>
            </div>
            <div id="conteudo">
                <%
                try{
                OracleConnector con = new OracleConnector();
                
                String nome = request.getParameter("name");
                String idade = request.getParameter("idade");
                String email = request.getParameter("email");
                String rg = request.getParameter("rg");
                
                String sql="insert into usuario(nm_usuario,qt_idade_usuario,nm_email_usuario,cd_registro_geral_usuario) values('"+nome+"','"+idade+"','"+email+"','"+rg+"')";
                out.println(sql);
                con.Inserir(sql);
                }catch(Exception e){
                
                }
             
            %>
             </div>
  
            <div>
             <%@include file="../_templates/footer.jsp"%>
            </div>
        </div>                    
    </body>
</html>
